package com.bdqn.Service.Emplyee.impl;

import com.bdqn.Service.Emplyee.EmployeeService;
import com.bdqn.entity.Employee;
import com.bdqn.mapper.Employee.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class EmployeeImplService implements EmployeeService {
    @Resource
    EmployeeMapper mapper;

    @Override
    public Employee fingByid(int id) {
        return mapper.findByid(id);
    }

    @Override
    public Employee findByid2(int id) {
        return mapper.findByid2(id);
    }

    @Override
    public boolean Insert(Employee employee) {
        return mapper.Insert(employee);
    }

    @Override
    public Employee selectemployeebyid(int id) {
        return mapper.selectemployeebyid(id);
    }
}
